package kr.hkit.powerjava.chapter11.Programming;

public class Circle {

	private double radius;//반지름
	private String color;//색상
	static final double PI = 3.14;

	public Circle() {//기본생성자
	}

	public Circle(double radius) {//더블형 인자1개 생성자
		this.radius = radius;
	}

	public double getRadius() {
		return radius;
	}

	public double getArea() {//넓이
		return PI * radius * radius;
	}

	@Override
	public String toString() {
		return String.format("Circle [radius=%s, color=%s]", radius, color);
	}
	
	
}
